package com.itheima.youdianda.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class YddArticle implements Serializable {
    private static final long serialVersionUID = 1L;

    //文章id
    @TableId(type = IdType.AUTO)
    private Integer id;

    //标题
    private String title;

    //作者的用户名,发布者user名称
    private String author;

    //seo关键字
    private String keywords;

    //seo描述
    private String description;

    //文章内容
    private String content;

    //缩略图
    private String pic;

    //阅读次数
    private Long click;

    //推荐:0表示不推荐,1表示推荐
    private Integer ishot;

    //是否置顶,1:是 2:否
    private Integer istop;

    //创建时间
    @JsonProperty("create_date")
    private long createDate;


//    private Integer createDate;

    //更新时间
    private long updateDate;

    //分类ID
    private Integer cateid;

    //文章的标签
    private String tags;

    //文章状态，0待审核，1草稿箱，2已发布，3已删除
    private Integer status;

    //收藏数量
    private String lovenum;

    //用户id
    private Integer userId;

    //是否为默认数据
    private String defaultData;

    @TableField(exist = false)
    private String catename;


}
